<template>
    <scroll class="wrapper" ref="scroll">
        <div class="cart-list">
            <cart-list-item v-for="item,index in cartList" :key="index" :cartItem="item"></cart-list-item>
        </div>
    </scroll>
    
</template>

<script>
import {mapGetters} from 'vuex'

import Scroll from 'components/common/scroll/Scroll'

import CartListItem from './CartListItem.vue'

export default {
    components: {
        CartListItem,
        Scroll 
    },
    computed: {
        ...mapGetters(['cartList'])
    },
    activated() {
        this.$refs.scroll.refresh2()
    }
}
</script>

<style scoped>
    .wrapper{ 
        height: calc(100% - 44px - 49px - 40px); 
    } 
</style>